package com.example.sxt_practise.访问权限控制符;

/**
 * @author 高枫
 */
public class Student {
        private int age ;
        private String name ;
        private String clazz ;

        public int getAge() {
            return age;
        }

        void setAge(int age) {
            this.age = age;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getClazz() {
            return clazz;
        }

        public void setClazz(String clazz) {
            this.clazz = clazz;
        }

        public Student(int age, String name, String clazz) {
            this.age = age;
            this.name = name;
            this.clazz = clazz;
        }

        Student() {
        }

         @Override
         public String toString() {
             return "Student{" +
                     "age=" + age +
                     ", name='" + name + '\'' +
                     ", clazz='" + clazz + '\'' +
                     '}';
         }
     }